package com.study.blog.service.impl;

import com.study.blog.mapper.ArticleMapper;
import com.study.blog.mapper.CategoryMapper;
import com.study.blog.model.entity.Article;
import com.study.blog.model.vo.ArticleVO;
import com.study.blog.model.vo.CategoryVO;
import com.study.blog.service.ArticleService;
import com.study.blog.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<CategoryVO> getAllCategory() {
        return categoryMapper.getAllCategory();
    }
}
